package com.ktjy.mapper;

import com.ktjy.entity.UserAco;
import com.ktjy.entity.Book;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface Bookmapper {
    //查询方法
    List<Book> getBooks();
    //添加
    int addBook(Book book);
    //删除
    int deleteBook(Book book);
    //查询单个
    Book selectByIdBook(Book book);
    //修改
    int updateBook(Book book);
    //登录验证
    UserAco selectAccount(UserAco account);
    //分页查询
    List<Book> pageBooks(@Param("entity") Book book,@Param("offset") Integer offset,@Param("rows") Integer rows);
    //查询总数
    Integer count(@Param("entity") Book entity);
}
